package drds.binlog.protocol.protocol_proto;

/**
 * Created by ibm on 2018/10/4.
 */
public interface GetOrBuilder extends
        // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Get)
        com.google.protobuf.MessageOrBuilder
{

    /**
     * <code>string destination = 1;</code>
     */
    String getDestination();

    /**
     * <code>string destination = 1;</code>
     */
    com.google.protobuf.ByteString
    getDestinationBytes();

    /**
     * <code>string client_id = 2;</code>
     */
    String getClientId();

    /**
     * <code>string client_id = 2;</code>
     */
    com.google.protobuf.ByteString
    getClientIdBytes();

    /**
     * <code>int32 fetch_size = 3;</code>
     */
    int getFetchSize();

    /**
     * <pre>
     * 默认-1时代表不控制
     * </pre>
     * <p>
     * <code>int64 timeout = 4;</code>
     */
    long getTimeout();

    /**
     * <pre>
     * 数字类型，0:纳秒,1:毫秒,2:微秒,3:秒,4:分钟,5:小时,6:天
     * </pre>
     * <p>
     * <code>int32 unit = 5;</code>
     */
    int getUnit();

    /**
     * <pre>
     * 是否自动ack
     * </pre>
     * <p>
     * <code>bool auto_ack = 6;</code>
     */
    boolean getAutoAck();

    public Get.TimeoutPresentCase getTimeoutPresentCase();

    public Get.UnitPresentCase getUnitPresentCase();

    public Get.AutoAckPresentCase getAutoAckPresentCase();
}
